Switchable Lights by KonstruKt aka DPC-Reverend

The first step of course is to place the light in the room, and build the switch. The pictures to the right show the switch hilighted in red. And the targetted light hilighted also. In the entity properties of the light, we set the targetname to "altar1". And in the func_button entity properties we set the target field to "altar1". Our switch now points to our light.


Another thing to notice is the ease at which the properties for a given entity can be edited. For a func_button we can set the angle (The direction the switch moves when activated.) The speed at which the switch will move, health if it is a shootable switch, and various other attributes of the switch. But the ones we are most concerned with are the target and targetname fields. If you notice the func_button has both, and so do our light. The target field is for specifying which entities will be targetted by our button. In this case altar1. At the same time the targetname field of the light has been set to altar1 as well. This is now set so that once the func_button has been activated it will activate it's "target" altar1. The light is recognized as altar1.

This confusing tutorial brought to you by KonstruKt aka DPC-Reverend

[ Previous | Home | Next ]